cpufreq: fix racing issue for cpu hotplug
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 16:33:47 +0000 (17:33 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 16:33:47 +0000 (17:33 +0100)
commit7cc4840cb2ec55f784800543d7ec49655f049654
tree4d5dc5cc1cc120315441119f0321f22ceee5d091
parente6984111fd761971c8575e2ece7c0fc2c8313e68
cpufreq: fix racing issue for cpu hotplug

To eliminate racing between dbs timer handler and cpufreq_del_cpu,
using kill_timer instead of stop_timer to make sure timer handler
execution finished before other stuff in cpufreq_del_cpu.

BTW, fix a lost point of cpufreq_statistic_lock taking sequence.

Signed-off-by: Wei Gang <gang.wei@intel.com>
xen/drivers/acpi/pmstat.c
xen/drivers/cpufreq/cpufreq_ondemand.c